package com.bindapp.util;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by nbzl on 2017/10/9.
 */
public class Static {
    public static final int STATE_RESET = -1;
    public static final int STATE_PREPARE = 0;
    public static final int STATE_BEGIN = 1;
    public static final int STATE_FINISH = 2;

    public static String policecode="000006";

    public static int rows=5;
    public static String zl="zl";
    public static String basestation="basestation";

    public static String NET_ERROR="网络连接失败";//无网络
    public static String DATA_ERROR="数据有误";
    public static String DATA_EMPTY="暂无更多数据";
    public static String TIMEEND="已到时";

    public static String FILERECORD="Qingbei";


    public static String IPServer = "114.55.140.195";
    public static int PORT=21134;


    //淘宝商店
    public static String TaoBao="https://qinwa.m.tmall.com/";
    //抽奖页面
    public static String CJUrl="https://xy.cupdatakjg.com/Content/LuckDraw/index.htm?tickets=";
    //Ez列表类型
    public static int LOAD_MY_DEVICE = 0,LOAD_SHARE_DEVICE=1;
    //token接口
    public static String EzTokenUrl="http://cam.cupdatakjg.com/api/User/GetSubUserToken?account=1&password=1&accountId=f06f6cf06c3e4a96aab8c95ff2a35aff";


    public static String Cookie="Tickets=0fae9aa2-7d39-4f0c-be20-3063075889b0";
    public static String HeadErs = "application/x-www-form-urlencoded";
    public static String APPSERVER="http://qw.nbsjzc.xin/api";
    public static String LoginUrl=APPSERVER+"/login";//登陆
    public static String SendCode=APPSERVER+"/APPUserRegister";//发送验证码
    public static String RegUrl=APPSERVER+"/APPUser";//注册用户
    public static String WsxxUrl=APPSERVER+"/Completing";//完善信息
    public static String SendCodeRes=APPSERVER+"/ResetCode";//重置发送验证码
    public static String ResetPassword=APPSERVER+"/ResetPassword";//忘记密码
    public static String ChangePassword=APPSERVER+"/ChangePassword";//修改密码
    public static String APPUser=APPSERVER+"/APPUser";//个人信息


    public static void showToast(Context context, String msg){
        Toast.makeText(context,msg,Toast.LENGTH_SHORT).show();
    }
    public static void myLog(String msg){
        Log.e("Mytext",msg);
    }
}
